/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wsv3;

import com.ws1.exo1.HelloBean;
import com.ws1.exo1.HelloRemote;
import com.ws1.exo2.ShoppingCartBean;
import com.ws1.exo2.domain.Item;
import com.ws1.exo3.AccountCreatorService;
import com.ws1.exo3.AccountCreatorServiceRemote;
import com.ws1.exo3.domain.Address;
import com.ws1.exo3.domain.Customer;
import com.ws1.exo3.domain.Login;
import javax.ejb.EJB;

/**
 *
 * @author johann
 */
public class Test3 {

    @EJB
    private static AccountCreatorServiceRemote accountCreatorService;
    
    public static void main(String[] args) {

        accountCreatorService.addIdentityInfos(new Customer("booba"));
        
        accountCreatorService.addLoginInfos(new Login("rohff","mdp"));
        
        accountCreatorService.addAddress(new Address(67310, "8 rue lol","Strasbourg"));
        
        accountCreatorService.createAccount();
    }
}
